package per.com.bean;

import java.util.Date;
import java.util.List;

public class Order extends BaseEntity {
    private String id;

    private String startPoint;

    private String endPoint;

    private Integer type;/* 用户类型：0为乘客，1为车主，必填*/

    private Date time;

    private String userId;

    private Integer status;/*订单状态：0为有剩余座位，1为座位已满，2为行程正在进行中*/

    private Integer userMax;

    private List<ApplyOrder> applyOrder;

    public List<ApplyOrder> getApplyOrder() {
        return applyOrder;
    }

    public void setApplyOrder(List<ApplyOrder> applyOrder) {
        this.applyOrder = applyOrder;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id == null ? null : id.trim();
    }

    public String getStartPoint() {
        return startPoint;
    }

    public void setStartPoint(String startPoint) {
        this.startPoint = startPoint == null ? null : startPoint.trim();
    }

    public String getEndPoint() {
        return endPoint;
    }

    public void setEndPoint(String endPoint) {
        this.endPoint = endPoint == null ? null : endPoint.trim();
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Date getTime() {
        return time;
    }

    public void setTime(Date time) {
        this.time = time;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId == null ? null : userId.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getUserMax() {
        return userMax;
    }

    public void setUserMax(Integer userMax) {
        this.userMax = userMax;
    }
}

